.class Lcom/direction/hold/ui/CommonActivity$3;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Z

.field private synthetic b:Landroid/app/Dialog;

.field private synthetic c:Ljava/util/Collection;

.field private synthetic d:Lcom/direction/hold/ui/CommonActivity;


# direct methods
.method constructor <init>(Lcom/direction/hold/ui/CommonActivity;Landroid/app/Dialog;Ljava/util/Collection;)V
    .locals 0

    iput-object p1, p0, Lcom/direction/hold/ui/CommonActivity$3;->d:Lcom/direction/hold/ui/CommonActivity;

    iput-object p2, p0, Lcom/direction/hold/ui/CommonActivity$3;->b:Landroid/app/Dialog;

    iput-object p3, p0, Lcom/direction/hold/ui/CommonActivity$3;->c:Ljava/util/Collection;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 6

    const/16 v5, 0x8

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$3;->b:Landroid/app/Dialog;

    check-cast v0, Landroid/app/AlertDialog;

    const v1, 0x7f08002a

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iget-object v1, p0, Lcom/direction/hold/ui/CommonActivity$3;->b:Landroid/app/Dialog;

    check-cast v1, Landroid/app/AlertDialog;

    const v2, 0x7f08002c

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/direction/hold/ui/CommonActivity$3;->b:Landroid/app/Dialog;

    check-cast v2, Landroid/app/AlertDialog;

    const v3, 0x7f08002b

    invoke-virtual {v2, v3}, Landroid/app/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v2

    iget-boolean v3, p0, Lcom/direction/hold/ui/CommonActivity$3;->a:Z

    if-nez v3, :cond_0

    const/4 v3, 0x1

    iput-boolean v3, p0, Lcom/direction/hold/ui/CommonActivity$3;->a:Z

    invoke-virtual {v2, v4}, Landroid/view/View;->setVisibility(I)V

    invoke-virtual {v2}, Landroid/view/View;->requestLayout()V

    const v2, 0x7f0500a6

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setText(I)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iget-object v2, p0, Lcom/direction/hold/ui/CommonActivity$3;->c:Ljava/util/Collection;

    invoke-interface {v0, v2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    iget-object v2, p0, Lcom/direction/hold/ui/CommonActivity$3;->d:Lcom/direction/hold/ui/CommonActivity;

    invoke-static {v2}, Lcom/direction/hold/ui/CommonActivity;->a(Lcom/direction/hold/ui/CommonActivity;)Lcn/cheln/support/adapter/MapAdapter;

    move-result-object v2

    new-instance v3, Lcn/cheln/support/adapter/a;

    invoke-direct {v3, v0}, Lcn/cheln/support/adapter/a;-><init>(Ljava/util/List;)V

    invoke-virtual {v2, v3}, Lcn/cheln/support/adapter/MapAdapter;->a(Lcn/cheln/support/adapter/a;)V

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$3;->d:Lcom/direction/hold/ui/CommonActivity;

    invoke-static {v0}, Lcom/direction/hold/ui/CommonActivity;->a(Lcom/direction/hold/ui/CommonActivity;)Lcn/cheln/support/adapter/MapAdapter;

    move-result-object v0

    invoke-virtual {v0}, Lcn/cheln/support/adapter/MapAdapter;->notifyDataSetChanged()V

    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    iput-boolean v4, p0, Lcom/direction/hold/ui/CommonActivity$3;->a:Z

    const v3, 0x7f0500a5

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setText(I)V

    invoke-virtual {v1, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    invoke-virtual {v2, v5}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0
.end method
